"""
通用工具
"""
from bs4 import BeautifulSoup
import shutil
import re
import os
import csv
import sys
from tqdm import tqdm
# import nltk
# from nltk.tokenize import sent_tokenize
import numpy as np
import spacy
from spacy.matcher import Matcher

def open_csv(name):
    """
    创建csv文件
    """
    return csv.writer(open("csv/{}.csv".format(name), "w", newline="",encoding="gb18030"), doublequote=False, escapechar="\\")
